<template>
	<view class="box">
		<view class="left-title">
			<text>{{title}}</text>
		</view>
		<view class="input">
			<input @input="changeInput" v-model="inputValue" :placeholder="placeholderValue" />
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: ''
			},
			placeholderValue: {
				type: String,
				default: ''
			}
		},
		data() {
			return {
				inputValue: ''
			}
		},
		methods: {
			changeInput() {
				this.$emit('changeInput', this.inputValue)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		width: 100%;
		height: 100rpx;
		display: flex;

		.left-title {
			width: 30%;
			line-height: 100rpx;

			text {
				font-size: 30rpx;
				margin-left: 20rpx;
			}
		}

		
		.input{
			width: 70%;
		}
		input {
			width: 90%;
			margin-top: 20rpx;
			height: 60rpx;
			border-bottom: 1rpx solid #eee;
			font-size: 26rpx;
		}
	}
</style>
